[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
twSize( Direction, sNumber, SaveORide )
----------------------------------------------------------------------------
This function allows the user to change the size of the current
window. Since text in the window is preserved, and in order to get
a working model of this routine up and running, twSize() will not
allow sizing over the size of the original window, unless saved
again with the SaveORide parameter. The operation of twSize() will
be enhanced with the next release of TSDWIN.
Right now, all sizing operations are done at the bottom window row
and the right window column.
IF THE WINDOW CARRIES SHADOW INFORMATION, IT IS UPDATED AS THE
WINDOW SLIDES.
Arguments:
Direction - 'C' "V or H" for Vertical or Horizontal. If you do
not specify a direction, the function does
nothing.
sNumber - 'N' the number is spaces to decrease or increase the
size by. Negative number mean decrease.
SaveORide - 'L' If you want to use what is on the stack already,
leave this alone. It defaults to .F. If you make
it .T. it will overwrite the contents of the
WSAVED area of the stack with the screen display
in the Current Window Display Area, EVEN IF IT IS
SMALLER THAN WHAT WAS ORIGINALLY CREATED!
Return:
Current Window Handle.
Example:
twSize( "V", -3 )
Decreases the vertical size by bringing the bottom row up three
lines.
If you want to allow user sizing on the fly, try creating a
function to be called on a SET KEY. See the WINDEMO.PRG source
code for details.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson